using UnityEngine;

public class NewBieNode : MonoBehaviour
{
	public LevelData levelData;

	private void Start()
	{
		MultiImageButton component = base.gameObject.GetComponent<MultiImageButton>();
		if (!base.gameObject.name.Equals(NewBie.instance.firstNode))
		{
			if (NewBie.instance.enable)
			{
				component.interactable = false;
			}
		}
		else
		{
			Transform transform = base.transform.Find("bie_arrow");
			transform.gameObject.SetActive(NewBie.instance.enable);
		}
	}

	private void Update()
	{
	}

	public void Click()
	{
		if (NewBie.instance.enable && levelData != null)
		{
			LevelDataIndex.CurrentLevel = levelData;
			GameManager.GType = GameType.Mission;
			LaunchUIController.instance.EnterLevel();
		}
	}
}
